#!/bin/bash

## This with 5.5 is ok
## need libicu54

. bases/base.sh

GOQTDIR=$GOPATH/src/github.com/visualfc/goqt

if [ ! -d $GOQTDIR ]; then
    go get github.com/visualfc/goqt
fi

which lua &> /dev/null
if [ $? -ne 0 ]; then
    install_tools lua5.1
fi

cd $GOQTDIR/qtdrv
qmake "CONFIG+=release"
make

cd $GOQTDIR/tools/rcc
qmake "CONFIG+=release"
make

cd $GOQTDIR/ui
go install -v

